﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="UserBaseList.aspx.cs" Inherits="Besture.UI.UserBaseList" %>

<%@ Import Namespace="Besture.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="listPage">
         <!--顶部操作按钮开始--> 
        <div class="operateBar">
            <cms:ListButton ID="ListButton1" runat="server" Title="" />
        </div> 
        <!--顶部操作按钮结束-->
        <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" 
            AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="GridCustomCallback"
            OnRowDeleting="GridRowDeleting">
            <Columns>
                <cms:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="50px"
                    FixedStyle="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选/全不选"
                            id="chkAll" runat="server" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </cms:GridViewCommandColumn>
				<cms:GridViewDataTextColumn Caption="操作" VisibleIndex="2" Width="80px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
						<div class="operateBox">
                            <a class="btn-text-edit" href="UserBaseSet.aspx?id=<%# Eval("ID")%>" title="编辑">
                            </a>&nbsp;&nbsp;<a class="btn-text-del" onclick="window.setTimeout(function(){aspxGVDeleteRow('ctl00_Content_grid',<%# Container.ItemIndex %>);},0)"
                                title="删除"></a>
                        </div>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                   <cms:GridViewDataTextColumn Caption="用户头像" VisibleIndex="1" Width="100" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center"> 
                      <DataItemTemplate>
                          <img src="\Upload\image\Content\<%#Eval("UserImage") %>" width="80" height="60" />
                      </DataItemTemplate>
				</cms:GridViewDataTextColumn> 
                <cms:GridViewDataTextColumn Caption="登录名" VisibleIndex="3" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left" FieldName="LoginName">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="昵称" VisibleIndex="4" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left" FieldName="NickName">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="真实姓名" VisibleIndex="4" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left" FieldName="RealName">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn> 
                 <cms:GridViewDataTextColumn Caption="性别" VisibleIndex="4" Width="30" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left" >
                    <DataItemTemplate>
                        <%#Eval("Sex").ToString()=="1" ?"男":"女" %>
                    </DataItemTemplate>
				</cms:GridViewDataTextColumn>  
				<cms:GridViewDataTextColumn Caption="手机号码" VisibleIndex="5" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left" FieldName="Phone">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="邮箱" VisibleIndex="6" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left" FieldName="Email">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="审核状态" VisibleIndex="10" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left">
				    <DataItemTemplate>
				        <%#Convert.ToString(Eval("CheckStatus"))=="0"?"审核中":"已审核"  %>
				    </DataItemTemplate>
				</cms:GridViewDataTextColumn> 
				
            </Columns>
        </cms:ASPxGridView>
    </div>
      <script>
          $(function () {
              $(".operate-add").css("display","none");
          });
    </script>
</asp:Content>
